﻿function NoContextMenu()
{
 return true;
   event.cancelBubble=true;
   event.returnValue=false;
   return false;
}

function NoRightClick()
{
   return true;
   if(event.button==2||event.button==3)
   {
      event.cancelBubble=true;
      event.returnValue=false;
      return false;
   }

}

document.oncontextmenu=NoContextMenu;
document.onmouserdown=NoRightClick;